$OpenBSD: patch-binsrc_tests_Makefile_in,v 1.1.1.1 2013/04/22 17:32:31 zhuk Exp $
--- binsrc/tests/Makefile.in.orig	Thu Aug  2 02:04:11 2012
+++ binsrc/tests/Makefile.in	Tue Jan 29 19:31:26 2013
@@ -580,7 +580,7 @@ force_dbms_name_iodbc_CFLAGS = $(AM_CFLAGS) $(iODBC_CF
 force_dbms_name_iodbc_LDADD = @iodbc_LDFLAGS@
 inifile_SOURCES = inifile.c inifile.vers.c
 inifile_CFLAGS = $(AM_CFLAGS) -DOPSYS=\"@OPSYS@\" -DHOST=\"@host@\" \
-	-DCVSID=\"1.0\" -DFALSE=0 '-Dinitialize_locale='
+	-DCVSID=\"1.0\" -DFALSE=0 '-Dinitialize_locale=' -lpthread
 inifile_LDADD = $(client_libs)
 
 # ----------------------------------------------------------------------
